package com.witfortos.kotlindemo.common.http

import com.pcl.mvvm.app.base.BaseResult
import com.witfortos.kotlindemo.m.User
import com.witfortos.kotlindemo.mvvm.data.BannerBean
import com.witfortos.kotlindemo.mvvm.data.LoginBean
import com.witfortos.kotlindemo.mvvm.data.News
import okhttp3.RequestBody
import retrofit2.http.*

/**
 *
 */
interface Api {
    /**
     * 玩安卓轮播图
     */
    @POST("/f/public/login.do")
    suspend fun login(@Body body: RequestBody): BaseResult<LoginBean>;

    @POST("/f/api/getUserInfo.do")
    suspend fun getUserInfo(): BaseResult<User>;

    @POST("/f/public/listNews.do")
    suspend fun getNews(@Body body: RequestBody): BaseResult<News>



}